

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Source: Alive.js | Source: Alive.js</title>

    <script src="scripts/prettify/prettify.js"> </script>
    <script src="scripts/prettify/lang-css.js"> </script>
    <!--[if lt IE 9]>
      <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <link type="text/css" rel="stylesheet" href="styles/bootstrap.min.css">
    <link type="text/css" rel="stylesheet" href="styles/prettify-jsdoc.css">
    <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
    <link type="text/css" rel="stylesheet" href="styles/tui-doc.css">

    
</head>
<body>
<nav class="lnb" id="lnb">
    <div class="logo" style="">
        
            <img src="img/toast-ui.png" width="100%" height="100%">
        
    </div>
    <div class="title">
        <h1><a href="index.html" class="link">Source: Alive.js</a></h1>
        
    </div>
    <div class="search-container" id="search-container">
        <input type="text" placeholder="Search">
        <ul></ul>
    </div>
    
    <div class="lnb-api hidden"><h3>Classes</h3><ul><li><a href="Alive.html">Alive</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="Alive_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="Alive.html#energy">energy</a></li></ul><div class="member-type">Methods</div><ul class="inner"><li><a href="Alive.html#survive">survive</a></li></ul></div></li><li><a href="Apple.html">Apple</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="Apple_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="Apple.html#color">color</a></li><li><a href="Apple.html#energy">energy</a></li></ul><div class="member-type">Methods</div><ul class="inner"><li><a href="Apple.html#survive">survive</a></li></ul><div class="member-type">Events</div><ul class="inner"><li><a href="Apple.html#event:beEaten">beEaten</a></li></ul></div></li><li><a href="Energy.html">Energy</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="Energy_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="Energy.html#amount">amount</a></li><li><a href="Energy.html#unit">unit</a></li></ul></div></li><li><a href="Environment.html">Environment</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="Environment_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="Environment.html#livingThings">livingThings</a></li><li><a href="Environment.html#name">name</a></li></ul><div class="member-type">Methods</div><ul class="inner"><li><a href="Environment.html#start">start</a></li></ul><div class="member-type">Events</div><ul class="inner"><li><a href="Environment.html#event:beforeDestroy">beforeDestroy</a></li></ul></div></li><li><a href="Tree.html">Tree</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="Tree_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="Tree.html#branches">branches</a></li><li><a href="Tree.html#energy">energy</a></li></ul><div class="member-type">Methods</div><ul class="inner"><li><a href="Tree.html#crop">crop</a></li><li><a href="Tree.html#survive">survive</a></li></ul></div></li></ul></div><div class="lnb-api hidden"><h3><a href="global.html">Global</a></h3></div>
</nav>
<div id="resizer"></div>

<div class="main" id="main">
    



    
    <section>
        <article>
            <pre class="prettyprint source linenums"><code>/**
 * Donec imperdiet dignissim semper. Sed vehicula purus dui, eget porta lectus convallis sagittis. Suspendisse ac lectus dignissim, tincidunt nisi quis, gravida metus.
 * @class 
 */
class Alive {
    constructor(){
        /**
         * amount of energy
         * @property {Energy} the 
         */
        this.energy = null;
    }
    /**
     * @param {Environment} environment the environment when this Alive thing is surviving
     * @return {Energy} the energy wasted in this surviving instance
     * @method 
     */
	survive() {
        return null
	}
}
</code></pre>
        </article>
    </section>




</div>

<footer>
    <img class="logo" src="img/toast-ui.png" style="">
    <div class="footer-text">NHN Entertainment. Frontend Development Lab</div>
</footer>
<script>prettyPrint();</script>
<script src="scripts/jquery.min.js"></script>
<script src="scripts/tui-doc.js"></script>
<script src="scripts/linenumber.js"></script>

    <script>
        var id = '_sub'.replace(/"/g, '_');
        var selectedApi = document.getElementById(id); // do not use jquery selector
        var $selectedApi = $(selectedApi);

        $selectedApi.removeClass('hidden');
        $selectedApi.parent().find('.glyphicon').removeClass('glyphicon-plus').addClass('glyphicon-minus');
        showLnbApi();
    </script>

</body>
</html>
